package logic;

import java.util.ArrayList;
import logicservice.ElectionLService;
import vo.*;

public class ElectionLService_Stub implements ElectionLService{
	
	public ElectionLService_Stub(){
		
	}

	public ArrayList<CourseVo> getAvilCourse(){
		System.out.println("get course list succeed");
		ArrayList<CourseVo> courseList = new ArrayList<CourseVo>();
		courseList.add(new CourseVo());
		return courseList;
	}
	
	public ArrayList<ElectionVo> getElection(String id) {
		System.out.println("get student's election succeed");
		ArrayList<ElectionVo> eleList = new ArrayList<ElectionVo>();
		eleList.add(new ElectionVo());
		return eleList;
	}

	public String addCourse(ArrayList<ElectionVo> election){
		return "add succeed";
	}

	public void deleteCourse(ElectionVo ele){
		System.out.println("delete succeed");
	}
}

class ElectionView{
	public static void main(String[] args){
		ElectionLService electionl = new ElectionLService_Stub();
		ArrayList<CourseVo> cour = electionl.getAvilCourse();
		ArrayList<ElectionVo> ele = electionl.getElection("0000");
		String ele1 = electionl.addCourse(ele);
		System.out.println(ele1);
		
		electionl.deleteCourse(new ElectionVo());
	}
}
